﻿using HPIT.RentHouse.Common;
using HPIT.RentHouse.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.RentHouse.IService
{
    public interface IRolesService : IServiceSupport
    {
        RoleEditDTO Get(long id);

        List<RoleDTO> GetList();

        List<RoleDTO> GetPageList(int start, int length, string name, ref int rowCount);

        AjaxResult Add(RoleEditDTO dto);

        AjaxResult Update(RoleEditDTO dto);

        AjaxResult Delete(long id);

        AjaxResult DeleteBatch(List<long> ids);
    }
}
